import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("business_card_examine", { schema: "alumni" })
export class BusinessCardExamine {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "user_id", unsigned: true, default: () => "'0'" })
  userId: number;

  @Column("text", { name: "content", nullable: true })
  content: string | null;

  @Column("varchar", { name: "cover", length: 100 })
  cover: string;

  @Column("tinyint", {
    name: "status",
    comment: "0:待审核,1:正常，2：驳回",
    unsigned: true,
    default: () => "'0'",
  })
  status: number;

  @Column("varchar", { name: "reason", comment: "原因", length: 100 })
  reason: string;
}
